Make Live Debugger per-second budgets configurable - #4509
Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit intoMay 12, 2026
Merged
Conversation
Collaborator
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Apr 21, 2026
Bundles Sizes Evolution
🚀 CPU Performance
🧠 Memory Performance
|
🎉 All green!❄️ No new flaky tests detected 🎯 Code Coverage (details) 🔗 Commit SHA: 2057d22 | Docs | Datadog PR Page | Give us feedback! |
watson
force-pushed
the
watson/DEBUG-5296/add-live-debugger
branch
from
April 21, 2026 07:36
bf9a162 to
b9da4f3
Compare
watson
force-pushed
the
watson/DEBUG-5296/make-limits-configurable
branch
from
April 21, 2026 07:36
1f6c9f0 to
e48232c
Compare
watson
force-pushed
the
watson/DEBUG-5296/add-live-debugger
branch
from
April 21, 2026 08:17
b9da4f3 to
0040ee8
Compare
watson
force-pushed
the
watson/DEBUG-5296/make-limits-configurable
branch
2 times, most recently
from
April 21, 2026 09:13
d179aeb to
a286fdd
Compare
watson
force-pushed
the
watson/DEBUG-5296/add-live-debugger
branch
from
April 21, 2026 09:13
0040ee8 to
653aee9
Compare
watson
changed the base branch from
watson/DEBUG-5296/add-live-debugger
to
graphite-base/4509
April 22, 2026 12:24
watson
force-pushed
the
graphite-base/4509
branch
from
April 22, 2026 21:03
653aee9 to
7d1efe7
Compare
watson
force-pushed
the
watson/DEBUG-5296/make-limits-configurable
branch
from
April 22, 2026 21:03
a286fdd to
4253889
Compare
watson
changed the base branch from
graphite-base/4509
to
watson/DEBUG-5296/add-live-debugger
April 22, 2026 21:03
watson
changed the base branch from
watson/DEBUG-5296/add-live-debugger
to
graphite-base/4509
April 23, 2026 10:42
watson
force-pushed
the
watson/DEBUG-5296/make-limits-configurable
branch
from
April 23, 2026 10:59
4253889 to
b730634
Compare
watson
changed the base branch from
graphite-base/4509
to
watson/DEBUG-5296/add-live-debugger
April 23, 2026 10:59
watson
changed the base branch from
watson/DEBUG-5296/add-live-debugger
to
graphite-base/4509
May 7, 2026 05:31
watson
force-pushed
the
graphite-base/4509
branch
from
May 12, 2026 11:07
8130067 to
e739e7e
Compare
watson
force-pushed
the
watson/DEBUG-5296/make-limits-configurable
branch
from
May 12, 2026 11:07
b730634 to
d43971b
Compare
watson
marked this pull request as ready for review
May 12, 2026 11:07
This was referenced May 12, 2026
mormubis
approved these changes
May 12, 2026
Allow the browser debugger to configure global snapshot and per-probe sampling limits through init options so teams can tune backpressure without changing the runtime.
watson
force-pushed
the
watson/DEBUG-5296/make-limits-configurable
branch
from
May 12, 2026 14:15
d43971b to
2057d22
Compare
gh-worker-dd-mergequeue-cf854d
Bot
deleted the
watson/DEBUG-5296/make-limits-configurable
branch
May 12, 2026 14:59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Motivation
Allow Live Debugger users to tune per-second backpressure limits without changing the runtime defaults.
Changes
Add new
DD_DEBUGGER.init()options to configure:Wire those options into the debugger probe budget logic and reset them when the debugger transport is reset. Add unit tests covering the configurable global snapshot limit and configurable per-probe snapshot/non-snapshot limits.
Test instructions
yarn test:unit --spec packages/debugger/src/domain/api.spec.tsyarn test:unit --spec packages/debugger/src/domain/probes.spec.tspackages/debugger/src/entries/main.ts, verify thatDebuggerInitConfigurationexposes:maxSnapshotsPerSecondGloballymaxSnapshotsPerSecondPerProbemaxNonSnapshotsPerSecondPerProbepackages/debugger/src/domain/probes.ts, verify those values are used as the runtime defaults when probe-specific sampling is not set.Checklist